import { Card, Table, Button } from 'antd';

export default function QualityInspection() {
  const columns = [
    {
      title: '检测项目',
      dataIndex: 'item',
    },
    {
      title: '检测结果',
      dataIndex: 'result',
    },
    {
      title: '检测时间',
      dataIndex: 'time',
    },
    {
      title: '操作',
      render: () => (
        <Button type="link">详情</Button>
      ),
    },
  ];

  return (
    <div style={{ padding: 24 }}>
      <Card title="质量检验记录">
        <Button type="primary" style={{ marginBottom: 16 }}>新建检验</Button>
        <Table columns={columns} rowKey="id" />
      </Card>
    </div>
  );
}